package com.prs.crm.action.crm;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.courser.struts.BaseAction;

import com.prs.crm.domain.crm.DispatchVital;
import com.prs.crm.service.crm.DispatchVitalService;

public class DispatchVitalAction extends BaseAction{
	private static final long serialVersionUID = 1L;
	
	private DispatchVital dispatchVital;
	private DispatchVitalService dispatchVitalService;
	
	@Action("dispatch")
	public String dispatch(){
		
		List<DispatchVital> list=this.getDispatchVitalService().getDispatchVitals();
		for(int i=0;i<list.size();i++){
			DispatchVital dispatchVital=(DispatchVital)list.get(i);
			System.out.println(dispatchVital.getSubmitFundTotal());
		}
		
		return SUCCESS;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	public DispatchVital getDispatchVital() {
		return dispatchVital;
	}
	public void setDispatchVital(DispatchVital dispatchVital) {
		this.dispatchVital = dispatchVital;
	}
	public DispatchVitalService getDispatchVitalService() {
		return dispatchVitalService;
	}
	public void setDispatchVitalService(DispatchVitalService dispatchVitalService) {
		this.dispatchVitalService = dispatchVitalService;
	}

}
